home *** CD-ROM | disk | FTP | other *** search
- ******************************************************************************
- * PROGRAM: Equipmnt.mnu
- *
- * WRITTEN BY: Borland Samples Group
- *
- * DATE: 12/93
- *
- * UPDATED: 5/95
- *
- * REVISION: $Revision: 1.22 $
- *
- * VERSION: Visual dBASE
- *
- * DESCRIPTION: This is a menu file used by Equipmnt.wfm. This
- * Menu will allow you to make a flight selection of different
- * flights of the AirBorland airlines.
- *
- * PARAMETERS: F -- the form to which this menu will belong.
- *
- * CALLS: None
- *
- * USAGE: form.menuFile = "Equipmnt.mnu"
- *
- *******************************************************************************
- ** END HEADER -- do not remove this line*
- * Generated on 05/06/94
- *
- Parameter FormObj
- NEW EQUIPMNTMENU(FormObj,"Root")
- CLASS EQUIPMNTMENU(FormObj,Name) OF MENUBAR(FormObj,Name)
- this.Text = ""
-
- DEFINE MENU FILE OF THIS;
- PROPERTY;
- Text "&File"
-
- DEFINE MENU EXIT OF THIS.FILE;
- PROPERTY;
- OnClick {;form.Release()},;
- Text "E&xit",;
- Shortcut "CTRL-Q"
-
- DEFINE MENU EQUIPMENT OF THIS;
- PROPERTY;
- Text "&Equipment"
-
- DEFINE MENU SELECT_FLIGHTS OF THIS.EQUIPMENT;
- PROPERTY;
- OnClick CLASS::GETFLIGHTS,;
- Text "&Select Flights",;
- Shortcut "CTRL-S"
-
- procedure GetFlights
-
- * Open modally the form that allows selection of different flights.
- * Update main form (equipmnt.wfm) depending on selections made.
- *******************************************************************************
- local getFltsForm, selected
-
- set procedure to &_dbwinhome.samples\GetFlts.wfm additive
-
- getFltsForm = new GetFltsForm()
- getFltsForm.mdi = .f.
- getFltsForm.Readmodal()
-
- getFltsForm.Release()
- close procedure &_dbwinhome.samples\Getflts.wfm
-
- show object form.flightsBrowse
- show object form.planeEntry
-
- ENDCLASS
-
-